package ifrn.scartissue.common.utils;

import java.util.regex.Pattern;

public class Validator {

	public static boolean validEmail(String email) {
		Pattern pattern = Pattern.compile("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$");
		return pattern.matcher(email).matches();
	}

}
